24. Notebook + Quiz: Bootstrapping

Bootstrapping

So, you may not have noticed that you have already been performing bootstrap sampling throughout this lesson. As well as in earlier lessons with Binomial events and die rolls. The fact that once you flip a head or roll a 6, you can continue to flip or roll that value again means that it is replaced even after being selected.

To make this more explicit, you will perform some tasks in this notebook that use bootstrap sampling, as well as some that involve sampling without replacement.

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: jupyter
  • Opened files (when workspace is loaded): n/a

Question 1. Use the resulting values from 1. in the notebook above to select all of the statements here that are true.

SOLUTION:
  • This sampling is an example of bootstrap sampling.

Question 2. Select all of the statements that are true about the code you ran in 2. above.

SOLUTION:
  • The code broke.
  • The `replace=False` portion did not allow us to select 20 times from an array of only 6 values.
  • This was an example of sampling without replacement.